package com.project.junM.service.impl;

import com.project.junM.entity.TMember;
import com.project.junM.entity.TVaccinNote;
import com.project.junM.mapper.TVaccinNoteMapper;
import com.project.junM.service.TVaccinNoteService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.servlet.http.HttpSession;
import java.util.List;

@Service
@Transactional
public class TVaccinNoteImpl implements TVaccinNoteService {
    @Autowired
    private TVaccinNoteMapper tVaccinNoteMapper;
    @Override
    public List<TVaccinNote> queryAllTVaccinNote(HttpSession session) {
        TMember member = (TMember) session.getAttribute("user");
//        System.out.println(member);
        return tVaccinNoteMapper.queryAllTVaccinNote(member.getIdcard());
    }
}
